#include <iostream>
#include<vector>
#include <string>
#include <stdio.h>
using namespace std;
void main()
{
	string str = "[3.2.0#10001-20000'60001-69999'#IS_OPEN_STORE:T]  [3.2.0#20001#IS_OPEN_REGISTER:T'IS_OPEN_DEFEND:T'IS_OPEN_ACTIVITY:T'IS_OPEN_BIND_MOBILE_PHONE:T'IS_OPEN_SIGNUP:T'IS_OPEN_STORE:T] [3.2.1#20001#IS_OPEN_REGISTER:T'IS_OPEN_SIGNIN:T'IS_OPEN_DEFEND:T'IS_OPEN_ACTIVITY:T'IS_OPEN_BIND_MOBILE_PHONE:T'IS_OPEN_SIGNUP:T'IS_OPEN_STORE:T]";
	vector<string> chavervs;
	char szTemp[4096] = { 0 };
	char szNext[4096] = { 0 };
	string str2 = "[3.2.0#10001-20000'60001-69999'#IS_OPEN_STORE:T]  [3.2.0#20001#IS_OPEN_REGISTER:T'IS_OPEN_DEFEND:T'IS_OPEN_ACTIVITY:T'IS_OPEN_BIND_MOBILE_PHONE:T'IS_OPEN_SIGNUP:T'IS_OPEN_STORE:T] [3.2.1#20001#IS_OPEN_REGISTER:T'IS_OPEN_SIGNIN:T'IS_OPEN_DEFEND:T'IS_OPEN_ACTIVITY:T'IS_OPEN_BIND_MOBILE_PHONE:T'IS_OPEN_SIGNUP:T'IS_OPEN_STORE:T]";
	//cout << str2;
	printf("%s\n",str2.c_str() );
	while (sscanf(str.c_str(), "%*[[]%[^]]%*[]]%s", szTemp, szNext))
	{
		cout<<"lplTest:sszTemp"<<szTemp<<endl;
		cout << "lplTest:szNext" << szNext<<endl;
		str = szNext;
		memset(szNext, 0, sizeof(szNext));
		chavervs.push_back(szTemp);
		if (str == "") {
			break;
		}
	}

}
int main_1()
{
	int a[1000];
	int totalnum;
	while (1)
	{
		cin >> totalnum;
		if (totalnum != 0)
		{
			for (int i = 0; i < totalnum; i++)
			{
				cin >> a[i];
			}
		}
		else{
			break;
		}
	}
	return 0;
}